<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <script type="text/javascript">
        let number =18
        let person = {
            name:'张三',
            sex:'男',
            // age: 18
        }

        Object.defineProperty(person,'age',{
            get:function(){
                return number
            }
        })
        // console.log(Object.keys(person))
        console.log(person)

    </script>
    
</body>
</html>